using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;

namespace EGEngine
{
    public class UIPage
    {
        public string PrefabLocation;
        public EUIPageType PageType;
        public GameObject gameObject;
        public Transform transform;
        public RectTransform rectTransform;
        public ResourceLoader resourceLoader;

        public UIPage()
        {
        }


        public virtual void Awake()
        {
        }

        public virtual void OnShowSync(params object[] data)
        {
        }

        public virtual void OnHideSync()
        {
        }

        public virtual void OnCloseSync()
        {
        }

        public virtual async Task OnShowAsync(params object[] data)
        {
        }

        public virtual async Task  OnHideAsync()
        {
        }

        public virtual async Task  OnCloseAsync()
        {
        }

        public virtual void OnRefresh(params object[] data)
        {
        }
    }
}